home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-07 | 1.5 KB | 61 lines | [TEXT/DWat] |
- graphunits cm
- graphframe 5 20 5 20
- fullscreen yes
-
- % Read the data:
- datafile A465.dat
- readcolumn x 2
- readcolumn y 3
-
- % Manipulate the data.
- % Shift the origin by (-180,-180).
- rpn <x 180 - >x
- rpn <y 180 - >y
-
- graphlimits % Find the limits of the data
-
- graphaspect 1.0 % Specify that we want a graph with a square grid
-
- pendash short % Specify a dash pattern
- drawgrid false % and draw a grid
-
- drawframe % Draw the frame around the graph
-
- % Set the point symbols using values in the data file.
- % Read the data in column 4, take the log of these values
- % and use them to scale the size of each point:
- readcolumn p 4
- rpn <p log min - max / >p
-
- % The p vector (which Asymptote uses for the point symbols)
- % now contains value between 0 and 1. The fractional part
- % of the p vector is the symbol size
- % Next, read the data in column 5 and use it for the
- % point symbols (filled circle, etc).
- % You could also calculate the symbols (see the Asymptote
- % User's guide for examples of this.)
- readcolumn e 5
- rpn <e <p + >p
-
- pointsize 16 % Chose a size for the points and plot them
- plotpoints
-
- % Plot a label (read from column 1) next to each point.
- readcolumn l 1 % Read column 1 in to the L vector
- rpn <x 10 + >x % Shift the labels a bit
- rpn <y .3 + >y
- scale .3 % Make the labels very small
- textmode inverted
- plotlabels aboveleft
- textmode
- scale .75
- drawxlabel Right Ascension Offset (arc seconds)
- drawylabel Declination Offset (arc seconds)
-
- % Draw the title a bit larger
- scale 1.25
- drawtitle A465
-
- % All done reading data so close the data window.
- closewindow \f
-